package cn.neusoft.mapper;


import cn.neusoft.domain.CargoVariety;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CargoVarietyMapper {
    public int insert(CargoVariety cargoVariety);

    public int deleteByID(int id);
    public int deleteByName(String name);
    public CargoVariety findByID(int id);
    public CargoVariety findByName(String name);

    public List<CargoVariety> getRoots();

    public int update(CargoVariety cargoVariety);


}
